#!/usr/bin/env bash
source ./installBrew.sh
source ./installNvs.sh

while getopts ":i:p:a:x" opt; do
  case ${opt} in
  i)
    echo "install: $OPTARG"
    eval "i_$OPTARG"
    ;;
  p)
    echo "setEnv: $OPTARG"
    eval "p_$OPTARG  >>$HOME/.linjrc"
    ;;
  :)
    echo "Invalid option: $OPTARG requires an argument" 1>&2
    ;;
  esac
done
